package project;

import java.awt.Point;

public class PlayerState implements PlayerStateIF {
	
	private Point coords;
	private int wallCount;
	
	protected PlayerState(int x, int y, int wallCount) {
		coords = new Point(x, y);
		this.wallCount = wallCount;
	}
	
	protected PlayerState clone() {
		return new PlayerState(coords.x, coords.y, wallCount);
	}
	
	// X-POS:
	public int getX() {
		return coords.x;
	}
	
	public void setX(int x) {
		coords.x = x;
	}
	
	// Y POS:
	public int getY() {
		return coords.y;
	}
	
	public void setY(int y) {
		coords.y = y;
	}
	
	// WALL COUNT:
	public int getWallCount() {
		return wallCount;
	}
	
	public void setWallCount(int wallCount) {
		this.wallCount = wallCount;
	}

	@Override
	public Point getCoords() {
		return coords;
	}
}